package com.gupao.p7store.common.utils;

/**
 * @description:    操作系统工具类
 * @author: dengbicheng
 * @create: 2021-12-20 10:14
 **/
public class OSUtils {

    /**
     * 判断当前是否windows系统
     * @return
     */
    public static boolean isWindows() {
        String osName = System.getProperty("os.name");
        return osName.contains("Windows");
    }

    public static void main(String[] args) {
        System.out.println(isWindows());
    }
}
